/**
 * 家庭成员的关系描述
 */
package com.findu.model;

import org.json.JSONObject;

/**
 *
 * @author 夏启根
 */
public class FUFamilyRelation {

    public String memberId;
    public String toId;
    public int relation;

    public FUFamilyRelation(JSONObject obj) {
        this.memberId = obj.optString("center_menber_id");
        this.toId = obj.optString("menber_id");
        this.relation = obj.optInt("relationship");
    }

    public void setValue(JSONObject obj) {
        this.memberId = obj.optString("center_menber_id");
        this.toId = obj.optString("menber_id");
        this.relation = obj.optInt("relationship");

    }

    /**
     * + " {" + " \"menber_id\": \"5568161a8cdf4ad2\"," + " \"id\":
     * \"2f8f3dc4f3cf45f0\"," + " \"relationship\": 3," + "
     * \"center_menber_id\": \"c279e471f4d180b0\"" + " }"
     *
     */
}
